add_requires("imgui v1.90.8", {configs = {glfw_opengl3 = true}})

function windows_release_config() 
    if is_os("windows") then
        if is_mode("release") then
            add_ldflags("-subsystem:windows")
            add_ldflags("-entry:mainCRTStartup", {force = true})
        end
    end
end

target("ImGUIDemo")
    set_kind("binary")
    add_packages("imgui")
    add_files("./*.cpp")
    windows_release_config()
